<template>
  <div class="main_friend">
    <div class="main_friend_left">
      <div class="main_friend_left_option">
        <div class="main_friend_left_option_item">
          <router-link to="/my/myFriends/friendList">
            <div class="main_friend_left_option_item_router">
              好友列表
            </div>
          </router-link>
        </div>
        <div class="main_friend_left_option_item">
          <router-link to="/my/myFriends/friendApply">
            <div class="main_friend_left_option_item_router">
              好友申请
            </div>
          </router-link>
        </div>
      </div>
      <div class="main_friend_left_list">
        <router-view></router-view>
      </div>
    </div>
    <div class="main_friend_right">
      <Chat/>
    </div>
  </div>
</template>

<script setup lang="ts">
import Chat from '@/views/personalCenter/myFriends/friendChat/index.vue'
</script>

<style lang="less" scoped>
.main_friend {
  display: flex;

  .main_friend_left {
    flex: 3;
    word-break: break-word;

    .main_friend_left_option {
      display: flex;
      background-color: #DCDCDC;

      .main_friend_left_option_item {
        flex: 5;
        font-size: 19px;
        text-align: center;
        cursor: pointer;
        border-bottom: 1px solid #F0FFF0;

        .main_friend_left_option_item_router {
          padding: 15px;
          width: 180px;
        }

        .main_friend_left_option_item_router:hover {
          background-image: linear-gradient(to top, #d9afd9 0%, #97d9e1 100%);
        }
      }
    }

    .main_friend_left_list {
      height: 100vh;
      background-color: #DCDCDC;
    }
  }

  .main_friend_right {
    flex: 10;
  }
}

.router-link-exact-active {
  color: red !important;
}
</style>